package _spring_test._ApplicationEventMulticaster;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Author: huangya
 * @Date: 2020/5/19
 * @Description:
 */
public class ApplicationEventMulticasterTest {

    public static void main(String[] args) {
        ApplicationContext ac = new ClassPathXmlApplicationContext("ApplicationEventMulticaster/application-event-listener.xml");
        ac.publishEvent(new EventTest(1, "test message"));
    }
}
